package com.yeyks.common.appcommon.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import java.io.Serializable;

/**
 * @author Administrator
 */
@ApiModel(description = "版本查询参数信息")
@Data
public class QuerySetVersionParam implements Serializable {
    private static final long serialVersionUID = -4710058182102557613L;

    //@RequestParam(value = "type")String type,
    // @RequestParam(value = "serverType")String serverType

    @ApiModelProperty(value = "设备类型",allowableValues = "Android,iOS")
    @NotBlank(message = "设备类型为必填")
    private String type;

    @ApiModelProperty(value = "服务类型",allowableValues = "admin,app")
    private String serverType;

    @ApiModelProperty(value = "手机端的目前版本")
    @NotBlank(message = "当前版本必传")
    private String oldVersion;

}
